package de.slothsoft.wasbinich.swingclient.control;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;

import de.slothsoft.wasbinich.swingclient.common.StrippedPanel;

public class WasBinIchPanel extends StrippedPanel {

    private static final long serialVersionUID = -7243167935300639737L;

    public WasBinIchPanel() {
	setFirstColor(new Color(255, 168, 115));
	setSecondColor(new Color(255, 137, 64));
	setStripesWidth(20);
    }

    @Override
    protected void paintStripes(Graphics2D g2) {
	super.paintStripes(g2);
	Rectangle rect = g2.getClipBounds();
	g2.fillRect(0, 0, rect.width, getStripesWidth() / 2);
    }
}
